﻿using UnityEngine;
using UnityEditor;

namespace BehaviorSystem
{
    public class DecoratorNode : BehaviourNode
    {
        public DecoratorNode(IBehaviorAgent agent) : base(agent)
        {
        }


        public override BTNodeState ExcuteNode()
        {
            OnExcuted();
            return HandleDecorator();
        }

        public virtual BTNodeState HandleDecorator()
        {
            return BTNodeState.Success;
        }
    }
}